how to merge two polygons in python